<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<script src="luckyexcel.min.js"></script>
	<script src="exceltotable.js"></script>
	<style>
		@media print {
			.no-print {
				display: none;
			}
			.contentA4 {
				width: 90vw;
				height: 90vw;
			}
            table {
        cellspacing:0;
        border-collapse:"collapse";
            }
		}
		
		@page {
			size: A4;
		}
		
		.contentA4 {
			max-width: 90vw;
			/* A4 纸宽度 */
			max-height: 90vh;
			/* A4 纸高度 */
		}
	</style>
</head>

<body class="contentA4">
	<span class="no-print">选择要导入的Excel文件，仅支持.xlsx格式<br></span>
	<button class="no-print" onclick="window.print()">打印</button>
	<input class="no-print" type="file" id="file" accept=".xlsx" />
	<div id="ctable"></div>
	<script>
	let el = document.getElementById('ctable');
    document.getElementById('file').addEventListener("change", (e) => {
      Exceltotable(e, el)
    }, false);
    Exceltotableurl("https://lrt99.gitee.io/exceltotable/压实度.xlsx", "压实度.xlsx", el);
	</script>
</body>

</html>